function changeStyle(id, clazz) {
    $(id).className = clazz;
}

function changeVisibility(id) {
    var element = document.getElementById(id);
    if (element.style.display == 'none') {
        element.style.display = 'block';
    } else {
        element.style.display = 'none';
    }
}

function loadCaptcha(){
  var src = "jcaptcha.action?rand=" + Math.random();
  var img = document.getElementById("captchaContainer");
  img.src = src;
}
